/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package LiveReservations.gui.control;


import LiveReservations.control.info.ReservationInfo;
import LiveReservations.model.business.ABusiness;
import LiveReservations.model.clients.AClient;

/**
 * skopos auths ths klassis einai na dimiourgei krathsh ReservationInfo, apo Client kai Business ths formas.
 * @author Aeon
 */
public class ReservationUIMock {
    
    //H epixirisi pou exei epileksei o xrhsths apo tin prohgoumenh forma
    private ABusiness newStore;
    private AClient newClient;
    private ReservationInfo newReservation;

    public ReservationUIMock() {
        /*//Hardcoded gia to mock mono allagi meta apo forma
        //TODO:apo API tou greg tha prepei na pairnei client k store
         newClient = new Guest("MockName","MockLastName");
         newStore = new Business ("mockbusiness",100);*/
        
        
        //Efoson epileksei na kanei kratish dhmiourgw ena ReservationInfo
        newReservation = new ReservationInfo(newClient,newStore);
        
        
        
    }

    public ABusiness getNewStore() {
        return newStore;
    }

    public void setNewStore(ABusiness newStore) {
        this.newStore = newStore;
    }

    public AClient getNewClient() {
        return newClient;
    }

    public void setNewClient(AClient newClient) {
        this.newClient = newClient;
    }

    public ReservationInfo getNewReservation() {
        //an dn exw kai client kai business gemata, dn epistrefei reservation 
        //alla epistrefei false
        if (this.newClient == null || this.newStore == null)
        {
            return null;
        }
        return newReservation;
    }
            
    
    
    
    
    
}
